package com.aiwei.tdjk.service;

import com.aiwei.tdjk.bean.Pager;
import com.aiwei.tdjk.dto.request.GetPermissionPagerRequest;
import com.aiwei.tdjk.entity.Permission;

import java.util.List;

/**
 * Created by yanfeng on 2016/12/13.
 */
public interface PermissionService {

    Permission get(Long id);

    void save(Permission permission);

    int update(Permission permission);

    int delete(Long id);

    int delete(Long[] ids);

    List<Permission> list();
    /**
     * 获取分页列表
     * @param request
     * @return
     */
    Pager<Permission> find(GetPermissionPagerRequest request);
}
